/*    This file is part of libmissive.
 *
 *    libmissive is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Lesser General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    libmissive is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public License
 *    along with libmissive.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MISV_SIGN_H
#define MISV_SIGN_H

#include <epistle/message.h>
#include "crypt.h"

int
msg_sign(Msg *msg, const Sign_skey my_skey);

int
msg_sign_open(Msg *msg, const Sign_pkey their_pkey);

int
signer_add(Msg *msg, const Sign_pkey my_pkey);

int
signer_remove(Msg *msg, Sign_pkey their_pkey);

int
signer_get(const Msg *msg, Sign_pkey their_pkey);

int
signer_open(Msg *msg, Sign_pkey their_pkey);

#endif
